package com.kaoshi.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.kaoshi.controller.ImageDimension;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author author
 * @since 2024-10-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("institution")
public class Institution implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "机构图片")
    @ExcelIgnore
    private String img;

    @ApiModelProperty(value = "机构名称")
    private String organization;

    @ApiModelProperty(value = "负责人姓名")
    private String principalname;

    @ApiModelProperty(value = "电话")
    private String phone;

    @ApiModelProperty(value = "机构地址")
    private String address;

    @ExcelIgnore
    @ApiModelProperty(value = "状态")
    private String status;

    @ApiModelProperty(value = "机构介绍")
    private String introduce;

    @ExcelIgnore
    @ApiModelProperty(value = "逻辑删除")
    private String del;

    @ApiModelProperty(value = "图片")
    @ImageDimension(width = 100, height = 100)
    @TableField(exist = false)
    private byte[] imgBytes;

}
